A. Final class
B. abstract class
C. parent class
D. None of above
Advertisement
Related Mcqs:
- The class java.sql.Timestamp is associated with _____________?
- A. java.util.Date B. java.util.Time C. java.sql.Time D. None of above...
- Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class?
- A. abstract B. static C. volatile D. final...
- Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
- A. From within protected methods you do not have access to public methods. B. This method is only accessible from inside the class itself and from inside all subclasses. C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined. D. This method...
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
- A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m...
- Size of int in Java is_________________?
- A. 8 bit B. 16 bit C. 32 bit D. 64 bit...
- Hot java is_______________?
- A. Web browser B. Java environment C. System software D. IDE...
- Automatic type conversion in Java takes place when________________?
- A. Two type are compatible and size of destination type is equal of source type. B. Two type are compatible and size of destination type is larger than source type. C. Two type are compatible and size of destination type is shorter than source type. D. All of the above...
- How many keywords are available in java ?
- A. 24 B. 48 C. 96 D. 192...
- Which command is used for interpretation of java program_______________?
- A. Java B. javap C. javac D. none of above...
Advertisement